parent of "" is ""
parent of "/foo" is ""
parent of "/foo/0" is "/foo"
